import request from '@/utils/request'

// 查询汇付分行数据
export function list(token,data){
  return request({
    url: '/cms/bank/get_bankbranch_huifu',
    method: 'post',
    params: {token},
    data
  })
}

//
// export function list(token,data){
//   return request({
//     url: 'cms/bank/get_zbank_select',
//     method: 'post',
//     params: {token},
//     data
//   })
// }


// 删除分行
export function del(token,bank_branch_id){
  return request({
    url: 'cms/bank/delete',
    method: 'post',
    params: {token},
    data: {bank_branch_id}
  })
}

// 增加分行
export function add(token,branchData){
  return request({
    url: 'cms/bank/addz',
    method: 'post',
    params: {token},
    data: branchData
  })
}


// 编辑分行
export function edit(token,branchData){
  return request({
    url: 'cms/bank/editZbank',
    method: 'post',
    params: {token},
    data: branchData
  })
}



